package com.ctvit.solr.kit.solr.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.annotation.Id;
import org.springframework.data.solr.core.mapping.SolrDocument;

import java.io.Serializable;

/**
 * Class description
 *
 * @author heyingcheng
 * @email heyingcheng@ctvit.com.cn
 * @date 2019/6/25 23:24
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@SolrDocument(collection = "productCollection")
public class UserBean implements Serializable {

    @Id
    @Field("id")
    private String id;
    @Field("item_name")
    private String itemName;
    @Field("item_sex")
    private String itemSex;
    @Field("item_address")
    private String itemAddress;
    @Field("item_host")
    private String itemHost;

}
